import {  request } from '@/network/request' //encapsulation ,
import { getToken } from '@/network/bookManager.js'

/*
 *@functionName: 获取菜单 信息
 *@params1: 参数1
 *@description:
 *@author: chendi
 *@date: 2020-09-03 21:20:06
 *@version: V1.0.5
*/
export async function queryMenu(option){
    let token = await getToken()
    return request({
      url: `/api/tcb/invokecloudfunction?&access_token=${token.access_token}&env=zhuma-mbnti&name=queryMenu`,
      method: `post`,
      data: JSON.stringify(option)
    })

}
